const express = require('express');
const router = express.Router();
const ServiceFactory = require('../factory/ServiceFactory.js');
const ResultJson = require('../model/ResultJson.js');

router.get('/findListByParentId', async (req, res) => {
  let results = await ServiceFactory.areaService.findListByParentId(req.query.parentId);
  res.json(new ResultJson(true, '数据获取成功', results));
});

module.exports = router;
